<?php
/**
 * Created by PhpStorm.
 * User: Wlh
 * Date: 2018/7/2
 * Time: 17:46
 */
namespace app\home\controller;

use app\common\controller\Frontend;
use think\Db;
use think\Request;

class Index extends Frontend{

    // 无需登录的接口,*表示全部
    protected $noNeedLogin = '*';
    // 无需鉴权的接口,*表示全部
    protected $noNeedRight = '*';

    protected $layout = '';

    public function _initialize()
    {
        parent::_initialize();
    }

    /**
     * BIBO主页
     */
    public function index()
    {

        $downloadFile = Db::name('version')->value('versionfile');   //下载文件
        $keywords = Db::table('bi_config')->field('name,value')->where('name','keywords')->find();
        $details = Db::table('bi_config')->field('name,value')->where('name','details')->find();
        $this->assign('keywords',$keywords);
        $this->assign('details',$details);
        $this->assign('downloadFile',$downloadFile);
        return $this->view->fetch();
    }
     
     public function test()
     {
     	$keywords = '';
     	$details = '';
     	$this->assign('keywords',$keywords);
        $this->assign('details',$details);
     	return $this->view->fetch();
     }
}